package day11.ProducerConsumer;

public class Test1 {
    public static void main(String[] args) {
        Stack stack = new Stack();
        Producer producer = new Producer(stack);
        Consumer consumer = new Consumer(stack);
        producer.start();
        consumer.start();
//        synchronized (stack){
//            while (true){
//                stack.notifyAll();
//            }
//        }
    }
}
